package cn.vehicle.domains.vo.req.sysUser;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "更新用户角色请求参数")
public class UpdateUserReq {

    @Schema(name = "id", description = "id")
    @NotNull(message = "id不能为空")
    private Long id;

    @Schema(name = "username", description = "用户名")
    private String username;

    @Schema(name = "password", description = "密码")
    @Length(min = 6, message = "密码长度必须大于6")
    private String password;

    @Schema(name = "phone", description = "手机号")
    private String phone;
}
